package com.hhkj.api.invoice.model.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * ApiInvoiceDetailRes
 *
 * @author zheng
 * @since 2023/11/6 23:29
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ApiInvoiceDetailRes extends ApiInvoiceRes {

    @Override
    @JsonIgnore(value = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getCreateTime() {
        return super.getCreateTime();
    }

    @Override
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getInvoicingDate() {
        return super.getInvoicingDate();
    }

    @Override
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getInvalidTime() {
        return super.getInvalidTime();
    }
}
